{extend name="layout" /}

{block name="breadcrumb"}
<h2>佣金设置</h2>
<ol class="breadcrumb">
    <li><a href="{:url('index/index')}">首页</a></li>
    <li><strong>佣金设置</strong></li>
</ol>
{/block}

{block name="main"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>佣金设置</h5>
    </div>
    <div class="ibox-content">
        <form method="post" class="form-horizontal" onsubmit="return toSubmit()">
            <div class="form-group">
                <label class="col-sm-2 control-label">分享文本</label>
                <div class="col-sm-6">
                    <textarea name="share_text" rows="3" class="form-control">{$shareText}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">佣金比例</label>
                <div class="col-sm-1">
                    <input type="text" name="commission" value="{$commission}" class="form-control" />
                </div>
                <label class="col-sm-1 control-label" style="text-align: left; padding-left: 0">%</label>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">销售佣金比例</label>
                <div class="col-sm-1">
                    <input type="text" name="sales_commission" value="{$sales_commission}" class="form-control" />
                </div>
                <label class="col-sm-1 control-label" style="text-align: left; padding-left: 0">%</label>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">代理佣金比例</label>
                <div class="col-sm-1">
                    <input type="text" name="agent_commission" value="{$agent_commission}" class="form-control" />
                </div>
                <label class="col-sm-1 control-label" style="text-align: left; padding-left: 0">%</label>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <button class="btn btn-primary" type="submit">提交</button>
                    <button class="btn btn-white" type="button"><a href="{:url('form')}">取消</a></button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}